package com.feisuanyz.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 食物选择记录入参实体类
 *
 * @author Chenke Zhao
 * @date 2025-03-06 10:18:05
 */
@Data
@NoArgsConstructor
public class MealSelectionDTO {

    @NotNull(groups = { CreateGroup.class }, message = "用户ID不能为空")
    private Integer userId;

    @NotNull(groups = { CreateGroup.class }, message = "食物ID不能为空")
    private Integer mealId;

    @NotBlank(groups = { CreateGroup.class }, message = "创建人不能为空")
    private String createBy;

    /**
     * 选择记录ID:选择记录ID，删除和更新时必填
     */
    @NotNull(groups = { DeleteGroup.class, UpdateGroup.class }, message = "选择记录ID不能为空")
    @Schema(description = "选择记录ID:选择记录ID，删除和更新时必填")
    private Long selectionId;
}
